package com.yuanyefu.helloworld;

import org.springframework.core.io.Resource;

import java.io.IOException;

/**
 * Created by Administrator on 2017/9/16 0016.
 */
public class ResourceBean {
    public void setUrlResource(Resource resource) throws IOException {
        System.out.println(resource.getURI());
    }
    public void setClasspathResource(Resource resource) throws IOException {
        System.out.println(resource.getFile());
    }
    public void setFileResource(Resource resource) throws IOException {
        System.out.println(resource.getFile());
    }
}
